<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateFangOwnersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fang_owners', function (Blueprint $table) {
            $table->id();
            $table->string('name')->comment('房东姓名');
            $table->unsignedTinyInteger('sex')->default(0)->comment('性别 0:女 1:男');
            $table->unsignedTinyInteger('age')->comment('年龄');
            $table->string('phone',15)->comment('手机号');
            $table->string('card',18)->comment('身份证号码');
            $table->string('address',100)->comment('家庭住址');
            $table->string('pic',200)->comment('身份证照片');
            $table->string('email',50)->comment('邮箱');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fang_owners');
    }
}
